package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

public class EsStockInventoryProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long inventoryId;
    @Excel(name = "产品ID")
    private Long productId;
    @Excel(name = "产品名称")
    private String productName;
    @Excel(name = "产品编号")
    private String productSn;
    @Excel(name = "规格型号")
    private String specification;
    @Excel(name = "分类名称")
    private String categoryName;
    @Excel(name = "单位")
    private String unit;
    @Excel(name = "库存数量")
    private Integer stockNum;
    /** 盘亏盘盈金额 */
    private BigDecimal profitLossAmount;

    /** 盘盈盘亏类型(profit:盘盈,loss:盘亏) */
    private String profitLossType;

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getProfitLossType() {
        return profitLossType;
    }

    public void setProfitLossType(String profitLossType) {
        this.profitLossType = profitLossType;
    }

    public BigDecimal getProfitLossAmount() {
        return profitLossAmount;
    }

    public void setProfitLossAmount(BigDecimal profitLossAmount) {
        this.profitLossAmount = profitLossAmount;
    }

    /** 商品单价 */
    private BigDecimal unitPrice;

    @Override
    public String toString() {
        return "EsStockInventoryProduct{" +
                "id=" + id +
                ", inventoryId=" + inventoryId +
                ", productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productSn='" + productSn + '\'' +
                ", specification='" + specification + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", unit='" + unit + '\'' +
                ", stockNum=" + stockNum +
                ", inventoryNum=" + inventoryNum +
                ", diffNum=" + diffNum +
                ", remark='" + remark + '\'' +
                ", goodsId=" + goodsId +
                '}';
    }

    @Excel(name = "盘点数量")
    private Integer inventoryNum;
    @Excel(name = "差异数量")
    private Integer diffNum;
    @Excel(name = "备注")
    private String remark;
    private Long goodsId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(Long inventoryId) {
        this.inventoryId = inventoryId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductSn() {
        return productSn;
    }

    public void setProductSn(String productSn) {
        this.productSn = productSn;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getStockNum() {
        return stockNum;
    }

    public void setStockNum(Integer stockNum) {
        this.stockNum = stockNum;
    }

    public Integer getInventoryNum() {
        return inventoryNum;
    }

    public void setInventoryNum(Integer inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    public Integer getDiffNum() {
        return diffNum;
    }

    public void setDiffNum(Integer diffNum) {
        this.diffNum = diffNum;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }
}
